package com.enqualcomm.kids;

import android.app.Dialog;

import com.enqualcomm.u_share.BuildConfig;
import com.umeng.socialize.Config;
import com.umeng.socialize.PlatformConfig;
import com.umeng.socialize.utils.Log;


/**
 * Created by yinzhiqun on 2016/5/16.
 */
public class UShare {

    public static void init() {
        PlatformConfig.setWeixin(BuildConfig.WX_APPID, BuildConfig.WX_APPSECRET); //西瓜皮
//        PlatformConfig.setWeixin("wx15e632f418470774","Eeone0943SEIOno8340DKLJjoewjiuta");  //喜书郎
//        PlatformConfig.setWeixin("wxe259dfe6e50dd472","Eqdnk07u234r70LFIneojkoji43579of");  //儿童天使V
//        if ("西瓜皮-西瓜皮".equals(BuildConfig.CHANNEL)) {
//            PlatformConfig.setWeixin("wxd110839a0818c66b", "21a0dfea2bfa97a94dddbb5a7851f0d1"); //西瓜皮
//        } else if ("喜书郎-喜书郎".equals(BuildConfig.CHANNEL)) {
//            PlatformConfig.setWeixin("wx15e632f418470774", "df90555884b566303caa33e90de6aec0");  //喜书郎
//        } else if ("前海毅德-儿童天使".equals(BuildConfig.CHANNEL)) {
//            PlatformConfig.setWeixin("wxe259dfe6e50dd472", "687b68c582e9f1c0a3764e49fb03819c");  //儿童天使V
//        }

        Log.LOG = false;//关闭日志
        Config.isloadUrl = true;//是否统计回流率
        Config.OpenEditor = false;//关闭编辑功能
//        Config.IsToastTip = false;//关闭吐司
    }

    public static void setProgressDialog(Dialog dialog) {
        Config.dialog = dialog;//修改默认的ProgressDialog
    }
}
